package container
{
	import baseInterface.container.IBaseSkinContainer;
	
	import flash.display.DisplayObjectContainer;
	import flash.geom.Point;
	
	import skin.BaseSkin;
	
	public class ADBaseSkinContain implements IBaseSkinContainer
	{
		protected var _bg:BaseSkin;
		public function ADBaseSkinContain()
		{
		}
		public function get skin():BaseSkin
		{
			return _bg;
		}
		public function set skin(value:BaseSkin):void
		{
			_bg=value;
		}
		
		public function destroy():void
		{
			// TODO Auto Generated method stub
			if(_bg)
			{
				if(_bg.parent)
				{
					_bg.parent.removeChild(_bg)
				}
				_bg=null;
			}
			
		}
		
		public function move(p:Point):void
		{
			// TODO Auto Generated method stub
			x=p.x;
			y=p.y;
		}
		
		public function set x(value:Number):void
		{
			// TODO Auto Generated method stub
			_bg.x=value;
		}
		
		public function get x():Number
		{
			// TODO Auto Generated method stub
			return _bg.x;
		}
		
		public function set y(value:Number):void
		{
			// TODO Auto Generated method stub
			_bg.y=value
		}
		
		public function get y():Number
		{
			// TODO Auto Generated method stub
			return _bg.y;
		}
		
		public function get height():Number
		{
			// TODO Auto Generated method stub
			return 0;
		}
		
		public function get width():Number
		{
			// TODO Auto Generated method stub
			return 0;
		}
		
		
	}
}